from typing import Optional
from lib.django.forms import create_form

from .models import AuditManagement

def create_audit_form(
    form_id: str = 'by6-audit-form',
    form_action: Optional[str] = None,
    form_fields: list[str] = ['comment', 'status'],
    form_method: str = 'post'
):
    return create_form(AuditManagement, form_id, form_action, form_fields, form_method)

